html {
  font-family: Source Han Sans CN-Regular, Source Han Sans CN;
}

body {
  background-color: #F5F5F5;

  header {
    background-color: white;

    .con {
      height: 80px;
      border-radius: 0px;
      display: flex;
      align-items: center;
      max-width: 1520px;
      width: 100%;
      margin: 0 auto;

      h1 {
        height: 53px;

        img {
          height: 53px;
          border-right: solid 1px #C1C1C1;
          padding-right: 20px;
        }
      }

      h2 {
        font-size: 24px;
        font-weight: 500;
        color: #205999;
        padding-left: 20px;
      }
    }
  }

  section {
    display: flex;
    max-width: 1520px;
    width: 100%;
    margin: 30px auto 0;

    &>div {
      height: calc(100vh - 110px);
      overflow-y: auto;

      h3 {
        font-size: 0;
        font-size: 18px;
        font-weight: bold;
        color: #205999;
        line-height: 0px;

        span {
          font-size: 14px;
        }

        &::before {
          content: "";
          width: 4px;
          height: 20px;
          background: #205999;
          border-radius: 0;
          display: inline-block;
          margin-right: 10px;
          vertical-align: -3px;
        }
      }
    }

    .left {
      width: 422px;
      background: #FFFFFF;
      box-shadow: 0px 0px 10px 1px rgba(210, 210, 210, 0.1608);
      border-radius: 0px;
      box-sizing: border-box;
      padding: 20px;

      ol {
        font-size: 18px;
        font-weight: 500;
        color: #333333;
        padding: 0;
        font-size: 0;

        li {
          margin-top: 15px;

          .num {
            font-size: 18px;
            font-weight: 500;
            color: #333333;
            padding: 15px 0;
          }

          .bg {
            padding: 10px;
            background: #F5F5F5;
            box-shadow: 0px 0px 10px 1px rgba(210, 210, 210, 0.1608);
            border-radius: 0px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;

            &:nth-of-type(n+2) {
              margin-top: 10px;
            }

            span {
              padding: 0 5px;
              min-width: 33px;
              height: 33px;
              line-height: 33px;
              text-align: center;
              background: #205999;
              border-radius: 0px;
              font-size: 13px;
              font-weight: 400;
              color: #FFFFFF;
              display: block;
              margin: 9px;

              &.error {
                background-color: #EB3223;
              }
            }

            img {
              margin: 2px auto;
              width: 200px;
              height: 200px;
              object-position: center;
              object-fit: contain;

              &.ratate1 {
                transform: rotate(90deg);
              }

              &.ratate2 {
                transform: rotate(180deg);
              }

              &.ratate3 {
                transform: rotate(270deg);
              }
            }

            p {
              font-size: 16px;
              font-weight: 400;
              color: #333333;
              line-height: 30px;
            }
          }
        }
      }
    }

    .center {
      flex: 1;
      background: #FFFFFF;
      box-shadow: 0px 0px 10px 1px rgba(210, 210, 210, 0.1608);
      border-radius: 0px;
      box-sizing: border-box;
      margin: 0 20px;
      padding: 20px 50px 30px 50px;

      .tm {
        margin-top: 50px;

        &:first-of-type {
          margin-top: 20px;
        }

        &>div {
          color: #333333;
          line-height: 24px;
          font-size: 20px;

          &:first-of-type {
            text-indent: -16px;
            padding-left: 16px;
          }

          img {
            max-width: 100%;
            vertical-align: text-top;
          }
        }

        .option {
          margin-top: 20px;

          .layui-input-block {
            margin-left: 12px;

            label {
              display: block;

              &:hover {
                .layui-form-radio {
                  * {
                    color: #0770D1;
                  }
                }
              }

              line-height: 30px;

              span {
                display: inline-block;
                width: 18px;
                height: 18px;
                border-radius: 50%;
                border: solid 1px #999;
                margin-right: 4px;
                padding: 4px;
                box-sizing: border-box;
                vertical-align: -2px;

                &.active {
                  border-color: #0770D1;
                  position: relative;

                  i {
                    position: absolute;
                    left: 1px;
                    top: 1px;
                    background: #0770D1;
                    display: inline-block;
                    width: 10px;
                    height: 10px;
                    border-radius: 50%;
                    border: solid 2px white;
                  }
                }
              }

              img {
                vertical-align: middle;
              }
            }
          }
        }
      }

      .bg {
        padding: 20px;
        background: #F5F5F5;
        margin-top: 20px;
        font-size: 18px;
        // line-height: 30px;
        // padding-top: 10px;

        &>p {
          padding-bottom: 20px;
          border-bottom: solid 1px #CFCFCF;
          overflow: hidden;

          span {
            font-size: 20px;
            font-weight: 500;
            color: #333333;

            &:nth-of-type(2) {
              float: right;
              color: #205999;
            }
          }
        }

        .d {
          p {
            font-size: 18px;
            font-weight: 400;
            color: #205999;
            line-height: 30px;

            &.error {
              color: #EB3223;
            }

            span {
              display: inline-block;
              min-width: 33px;
              height: 33px;
              background: #205999;
              border-radius: 0;
              margin: 10px;
              font-size: 18px;
              font-weight: 400;
              color: #FFFFFF;
              text-align: center;
              line-height: 33px;

              &.error {
                background-color: #EB3223;
                color: white;
              }
            }
          }

          img {
            &[preview] {
              cursor: zoom-in;
              width: 200px;
              height: 200px;
              object-fit: contain;
              object-position: center;

              &.ratate1 {
                transform: rotate(90deg);
              }

              &.ratate2 {
                transform: rotate(180deg);
              }

              &.ratate3 {
                transform: rotate(270deg);
              }
            }
          }
        }
      }
    }

    .right {
      width: 230px;
      background: #FFFFFF;
      box-shadow: 0px 0px 10px 1px rgba(210, 210, 210, 0.1608);
      border-radius: 0px;
      box-sizing: border-box;
      padding: 20px;

      ol {
        padding: 10px 20px 38px 20px;
        border-bottom: solid 1px #C1C1C1;
        counter-reset: item;

        li {
          margin-top: 20px;
          font-size: 18px;
          font-weight: 500;
          color: #333333;
          line-height: 30px;
          position: relative;

          &::before {
            position: absolute;
            right: 145px;
            content: counter(item)".";
            counter-increment: item;
          }

          input {
            width: 85px;
            height: 29px;
            background: #FFFFFF;
            border-radius: 0px;
            border: 1px solid #C1C1C1;
            margin: 0 10px 0 6px;
            box-sizing: border-box;
            padding: 0 10px;
          }
        }
      }

      p {
        font-size: 18px;
        font-weight: 500;
        color: #333333;
        line-height: 0px;
        margin-top: 34px;

        input {
          box-sizing: border-box;
          padding: 0 10px;
          width: 85px;
          height: 29px;
          background: #FFFFFF;
          border-radius: 0px;
          border: 1px solid #C1C1C1;
          margin: 0 10px 0 6px;
          font-size: 16px;
          font-weight: 400;
          color: #333333;
          line-height: 30px;
        }
      }

      textarea {
        width: 100%;
        height: 100px;
        border-radius: 0;
        border: 1px solid #C1C1C1;
        margin-top: 34px;
        box-sizing: border-box;
        padding: 10px;
        font-size: 16px;
        line-height: 20px;
        font-weight: 400;
        color: #333333;
        resize: none;
      }

      button {
        width: 189px;
        height: 40px;
        background: #205999;
        border-radius: 0px;
        font-size: 16px;
        font-weight: 400;
        color: #FFFFFF;
        line-height: 40px;
        border: none;
        outline: none;
        margin-top: 52px;
        cursor: pointer;
      }
    }
  }

  img {
    &[preview] {
      cursor: zoom-in;
    }
  }

  #preview {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    top: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.5);
    // cursor: zoom-out;
    display: none;
    justify-content: center;
    align-items: center;

    &.show {
      display: flex;
    }

    #scrawl-main {
      position: relative;
      width: 95vw;
      height: 90vh;

      &>span {
        position: absolute;
        width: 30px;
        height: 30px;
        background-color: red;
        cursor: pointer;
        background: url("./images/旋转1.png") center / contain no-repeat;

        &.left {
          left: 30%;
          transform: translateX(-35px);
        }

        &.right {
          right: 60%;
          transform: translateX(35px) rotateY(180deg);
        }
      }
    }

    .box {
      position: relative;
      width: 70vw;
      height: 90vh;
      overflow: auto;
      display: flex;
      justify-content: center;
      align-items: center;



      canvas {
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 100;
        transform: translate(-50%, -50%);
      }
    }

    .close {
      position: absolute;
      left: calc(70vw - 80px);
      top: 0;
      z-index: 1000;
      font-size: 32px;
      font-weight: bold;
      width: 50px;
      height: 50px;
      font-size: 36px;
      font-weight: bold;
      border-radius: 50%;
      color: #333;
    }

    .bj {
      position: absolute;
      left: calc(70vw - 10px);
      top: 0;
      z-index: 1000;
      font-size: 32px;
      font-weight: bold;
      width: 50px;
      height: 50px;
      font-size: 36px;
      font-weight: bold;
      border-radius: 50%;
      color: #333;
    }

    // img {
    //   width: 90vh;
    //   height: 90vh;
    //   object-fit: contain;

    //   &.ratate1 {
    //     transform: rotate(90deg);
    //   }

    //   &.ratate2 {
    //     transform: rotate(180deg);
    //   }

    //   &.ratate3 {
    //     transform: rotate(270deg);
    //   }
    // }
  }
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track-piece {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:vertical {
  height: 5px;
  background-color: rgba(125, 125, 125, 0.7);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:horizontal {
  width: 5px;
  background-color: rgba(125, 125, 125, 0.7);
  border-radius: 6px;
}












.drawToolbar {
  display: none;
  position: absolute;
  right: 100px;
  top: 100px;
  width: 110px;
  height: 320px;
  overflow: hidden;
  background-color: white;

  .brushIcon {
    display: inline-block;
    width: 16px;
    height: 16px;
    // background-image: url('http://d.r9it.com/yygraft/css/images/brush.png')
  }

  .eraserIcon {
    display: inline-block;
    width: 16px;
    height: 16px;
    // background-image: url('http://d.r9it.com/yygraft/css/images/eraser.png')
  }

  .blurIcon {
    display: inline-block;
    width: 16px;
    height: 16px;
    // background: url(http://d.r9it.com/yygraft/css/images/blur.png) -2px -2px;
    background-size: 22px 20px;
  }

  .colorBar {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    zoom: 1;
    overflow: hidden;

    span {
      float: left;
      margin: 2px 3px;
      width: 10px;
      height: 10px;
      border: 1px solid #c1c1c1;
      border-radius: 3px;
      cursor: pointer;
    }

    .active {
      border-color: #FF0000;
      box-shadow: 2px 2px 5px #d3d6da;
    }
  }

  .sectionBar {
    margin-top: 15px;
    font-size: 12px;
    text-align: center;

    a {
      display: inline-block;
      width: 10px;
      height: 12px;
      color: #888;
      text-indent: -999px;
      opacity: 0.3
    }

    .size1 {
      background: url('http://d.r9it.com/yygraft/css/images/size.png') 1px center no-repeat;
    }

    .size2 {
      background: url('http://d.r9it.com/yygraft/css/images/size.png') -10px center no-repeat;
    }

    .size3 {
      background: url('http://d.r9it.com/yygraft/css/images/size.png') -22px center no-repeat;
    }

    .size4 {
      background: url('http://d.r9it.com/yygraft/css/images/size.png') -35px center no-repeat;
    }

    .icon {
      position: relative;
      top: 3px;
    }

    .clearSetting {
      .icon {
        display: inline-block;
        width: 16px;
        height: 16px;
        // background-image: url('http://d.r9it.com/yygraft/css/images/init.png');
        background-size: 16px 16px;
      }
    }

    .addImgH {
      position: relative;

      .icon {
        display: inline-block;
        width: 16px;
        height: 16px;
        background-image: url('http://d.r9it.com/yygraft/css/images/addimg.png');
        cursor: default;
      }

      .upload {
        position: absolute;
        left: 18px;
        top: -1px;
        width: 75px;
        height: 21px;
        opacity: 0;
        cursor: pointer;
        opacity: 0;
      }
    }

    .removeImg {
      .icon {
        display: inline-block;
        width: 16px;
        height: 16px;
        background-image: url('http://d.r9it.com/yygraft/css/images/delimg.png');
        cursor: default;
      }

      .text {
        color: #ccc;
        cursor: default;
      }
    }

    //end removeImg

    .removeImg.active {
      cursor: pointer;

      .icon {
        background-image: url('http://d.r9it.com/yygraft/css/images/delimgH.png');
      }

      .text {
        color: #000;
        cursor: default;
      }
    }

    //end removeImg

    //保存图片
    .saveImg2 {
      cursor: pointer;

      .icon {
        display: inline-block;
        width: 16px;
        height: 16px;
        // background-image: url('http://d.r9it.com/yygraft/css/images/save.png');
        background-size: 18px 18px;
        cursor: default;
      }
    }

  }

  #clearSetting {
    cursor: pointer;
  }
}